package com.yuhs.zixing.study.design.pattern.dp002.create.c002.factory.f003;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/4/21 4:31 AM
 */
public class Client {
    public static void main(String[] args) {
        Creator creator = new ConcreteCreator();
        final ConcreteProduct1 product = creator.createProduct(ConcreteProduct1.class);
        final ConcreteProduct2 product1 = creator.createProduct(ConcreteProduct2.class);
        /*
         * 继续业务处理
         */
        product.method2();
        product1.method1();
    }
}
